package com.taobao.api.response;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.order.create.sync response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrOrderCreateSyncResponse extends TaobaoResponse {

	private static final long serialVersionUID = 8835954179775674173L;

	/** 
	 * result
	 */
	@ApiField("result")
	private NrResult result;


	public void setResult(NrResult result) {
		this.result = result;
	}
	public NrResult getResult( ) {
		return this.result;
	}
	
	/**
 * items
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrSyncCreateOrderItemRespDto extends TaobaoObject {

	private static final long serialVersionUID = 1298431364885646994L;

	/**
		 * 商品的实付款，扣减单品优惠之后的金额
		 */
		@ApiField("actual_fee")
		private Long actualFee;
		/**
		 * 购买数量
		 */
		@ApiField("buy_amount")
		private Long buyAmount;
		/**
		 * 商品优惠抵扣金额，只包含单品优惠
		 */
		@ApiField("discount_fee")
		private Long discountFee;
		/**
		 * 商品id
		 */
		@ApiField("item_id")
		private Long itemId;
		/**
		 * 单品优惠详情，优惠名称:抵扣金额（单位：分）。异步创建订单时此字段为商品入参的promotion字段
		 */
		@ApiField("item_promotion")
		private String itemPromotion;
		/**
		 * 商品sku id
		 */
		@ApiField("sku_id")
		private Long skuId;
		/**
		 * 子订单ID
		 */
		@ApiField("sub_tid")
		private String subTid;
		/**
		 * 商品下单使用的金额，同步创建为线上商品金额，异步创建为外部传过来的商品金额，单位：分
		 */
		@ApiField("unit_price")
		private Long unitPrice;
	

	public Long getActualFee() {
			return this.actualFee;
		}
		public void setActualFee(Long actualFee) {
			this.actualFee = actualFee;
		}
		public Long getBuyAmount() {
			return this.buyAmount;
		}
		public void setBuyAmount(Long buyAmount) {
			this.buyAmount = buyAmount;
		}
		public Long getDiscountFee() {
			return this.discountFee;
		}
		public void setDiscountFee(Long discountFee) {
			this.discountFee = discountFee;
		}
		public Long getItemId() {
			return this.itemId;
		}
		public void setItemId(Long itemId) {
			this.itemId = itemId;
		}
		public String getItemPromotion() {
			return this.itemPromotion;
		}
		public void setItemPromotion(String itemPromotion) {
			this.itemPromotion = itemPromotion;
		}
		public Long getSkuId() {
			return this.skuId;
		}
		public void setSkuId(Long skuId) {
			this.skuId = skuId;
		}
		public String getSubTid() {
			return this.subTid;
		}
		public void setSubTid(String subTid) {
			this.subTid = subTid;
		}
		public Long getUnitPrice() {
			return this.unitPrice;
		}
		public void setUnitPrice(Long unitPrice) {
			this.unitPrice = unitPrice;
		}

}

	/**
 * result
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NrResult extends TaobaoObject {

	private static final long serialVersionUID = 2489614991593679772L;

	/**
		 * errorCode
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * errorMessage
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * resultData
		 */
		@ApiField("result_data")
		private NrSyncCreateOrderItemRespDto resultData;
		/**
		 * success
		 */
		@ApiField("success")
		private Boolean success;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public NrSyncCreateOrderItemRespDto getResultData() {
			return this.resultData;
		}
		public void setResultData(NrSyncCreateOrderItemRespDto resultData) {
			this.resultData = resultData;
		}
		public Boolean getSuccess() {
			return this.success;
		}
		public void setSuccess(Boolean success) {
			this.success = success;
		}

}



}
